<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" href="">
	<link href="/fcms/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
	<link href="/fcms/Public/assets/css/home.css" rel="stylesheet" />
	<link href="/fcms/Public/assets/css/font-awesome.min.css" rel="stylesheet" />
	<script src='/fcms/Public/assets/js/jquery-2.0.3.min.js'></script>
	<script src="/fcms/Public/assets/js/bootstrap.min.js"></script>
	<script src="/fcms/Public/assets/js/jquery.scrollUp.min.js"></script>
	<script src="/fcms/Public/assets/js/jquery.color.js"></script>
	<style>
		#scrollUp {
		    background-image: url("/fcms/Public/assets/images/home/top.png");
		    bottom: 20px;
		    right: 20px;
		    width: 38px;    
		    height: 38px;   
		}
		#scrollUp-active{
			border: 0!important;
		}
	</style>

	<title>首页 - FCMS</title>
	<style>
		.navbar{
			border-bottom-left-radius: 0;
			border-bottom-right-radius: 0;
		}
	</style>
</head>
<body>

	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<?php echo W('Menu/nav');?>
				<div class="carousel slide" id="carousel">
					<ol class="carousel-indicators">
						<?php if(is_array($bs)): foreach($bs as $key=>$vo): ?><li data-slide-to="<?php echo ($key); ?>" data-target="#carousel" <?php if($key == 0): ?>class="active"<?php endif; ?>></li>&nbsp;&nbsp;<?php endforeach; endif; ?>
						
					</ol>
					<div class="carousel-inner">
						<?php if(is_array($bs)): foreach($bs as $key=>$vo): ?><div class="item <?php if($key == 0): ?>active<?php endif; ?>" >
							<a href="<?php echo ($vo["url"]); ?>">
							<img alt="" src="/fcms/Public/<?php echo ($vo["img"]); ?>" />
							</a>
							<div class="carousel-caption">
								<h4><?php echo ($vo["title"]); ?></h4>
								<p>
									<?php echo ($vo["note"]); ?>
								</p>
							</div>
						</div><?php endforeach; endif; ?>
					</div>
					<a class="left carousel-control" href="#carousel" data-slide="prev">
						<span class="glyphicon glyphicon-chevron-left"></span>
					</a>
					<a class="right carousel-control" href="#carousel" data-slide="next">
						<span class="glyphicon glyphicon-chevron-right"></span>
					</a>
				</div>
				<div class="row clearfix main">
					<div class="col-md-8 column">
						<?php if(is_array($list)): foreach($list as $key=>$vo): ?><h2>
								<a href="<?php echo U('Home/Index/detail','a_id='.$vo['id']);?>">
									<!-- <?php echo (mb_strlen($vo["title"],'utf8')); ?> -->
									<?php if((mb_strlen($vo['title'],'utf8') > 17)): echo (msubstr($vo["title"],0,17,'UTF-8',true)); ?>
									<?php else: echo ($vo["title"]); endif; ?>
								</a>
								<small><?php echo ($vo["create_time"]); ?></small>
							</h2>

							<div class="content">
								<?php echo (msubstr(strip_tags(htmlspecialchars_decode($vo["content"])),0,197,'UTF-8',true)); ?>
							</div>
							<p>
								<a class="btn" href="<?php echo U('Home/Index/detail','a_id='.$vo['id']);?>">阅读全文 »</a>
							</p>
							<hr><?php endforeach; endif; ?>

						<!--分页-->
						<div style="text-align: center;"><?php echo ($page); ?></div>
					</div>
					<div class="col-md-4 column">

						<div class="panel panel-default">
							<div class="panel-heading">
								<h3 class="panel-title">联系方式</h3>
							</div>
							<div class="panel-body">
								QQ&nbsp;&nbsp;&nbsp;：114361190 <br>
								Email：fini.yang@gmail.com <br>
								Tel&nbsp;&nbsp;&nbsp;&nbsp;：400-800-12345 <br>
							</div>

						</div>

						<div class="list-group">
							<div class="list-group-item active">热门文章</div>
							<?php if(is_array($hot)): foreach($hot as $key=>$vo): ?><div class="list-group-item">
									<a href="<?php echo U('Home/Index/detail','a_id='.$vo['id']);?>">
										<!-- <?php echo (mb_strlen($vo["title"],'utf8')); ?> -->
										<?php if((mb_strlen($vo['title'],'utf8') > 20)): echo (msubstr($vo["title"],0,20,'UTF-8',true)); ?>
										<?php else: echo ($vo["title"]); endif; ?>
									</a>
								</div><?php endforeach; endif; ?>
						</div>
						<img  width="100%" src="/fcms/Public/assets/images/home/1009227.jpg" class="img-rounded" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="well foot">
	<p>
		Copyright © 2014 - Powered by Fini
	</p>
</div>
<script type="text/javascript">
	//返回顶部 start
    $.scrollUp({
        animation: 'fade',
        activeOverlay: '#00FFFF',
        scrollImg: {
            active: true,
            type: 'background',
            src: '/fcms/Public/assets/images/top.png'
        }
    });
</script>
</body>
</html>